package com.example.sls.service.impl.logistics;

import com.example.sls.pojo.logistics.Announcements;
import com.example.sls.dao.logistics.AnnouncementsDao;
import com.example.sls.service.intserfaces.logistics.AnnouncementsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 公告管理表(Announcements)表服务实现类
 *
 * @author 蓝江富
 * @since 2024-06-18 10:55:05
 */
@Service
public class AnnouncementsServiceImpl implements AnnouncementsService {
  @Autowired
  AnnouncementsDao announcementsDao;
  @Override
  public Announcements queryById(Integer id) {
    return announcementsDao.queryById(id);
  }
  @Override
  public int deleteById(Integer id) {
    return announcementsDao.deleteById(id);
  }
  @Override
  public int update(Announcements announcements) {
    return announcementsDao.update(announcements);
  }
  @Override
  public int insert(Announcements announcements) {
    return announcementsDao.insert(announcements);
  }
  @Override
  public long count() {
    return announcementsDao.count();
  }
  @Override
  public List<Announcements> queryAllByLimit(Announcements announcements, Integer pageSize, Integer offset) {
    return announcementsDao.queryAllByLimit(announcements, pageSize, offset);
  }
}
